return Class{
   init = function (self)
      self.gui = _src("gui")()
   end,

   update = function (self, dt)
      self.gui:update(dt)
   end,
   
   draw = function (self)
      self.gui:draw()
   end,

   load = function (self)
      
   end,

   resize = function (self, w, h)

   end,

   reset_gui = function (self)
      self.gui = @@src(gui)()
   end,
   
   mousepressed = function (self, x, y, b)
      self.gui:mousepressed (x, y, b)
   end,
   
   mousereleased = function (self, x, y, b)
      self.gui:mousereleased(x, y, b)
   end,
   
   mousemoved = function (self, x, y)
      self.gui:mousemoved(x, y)
   end,
   
   wheelmoved = function (self, x, y)
      self.gui:wheelmoved(x, y)
   end,
}
